-- GENERATED SPELL FOR [Cabal Acolyte] --


function spell0_18633(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(12039,pUnit)
pUnit:RegisterEvent('Sorts_18633', 3000, 1)
end

function spell1_18633(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(38209,pUnit)
pUnit:RegisterEvent('Sorts_18633', 3000, 1)
end

function spell2_18633(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(25058,pUnit)
pUnit:RegisterEvent('Sorts_18633', 15000, 1)
end

function spell3_18633(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(38210,pUnit)
pUnit:RegisterEvent('Sorts_18633', 15000, 1)
end

function Sorts_18633(pUnit, Event)
local choix_sorts_18633 = math.random(0, 3)
if choix_sorts_18633 == 0 then
pUnit:RegisterEvent('spell0_18633', 1, 1)
end
if choix_sorts_18633 == 1 then
pUnit:RegisterEvent('spell1_18633', 1, 1)
end
if choix_sorts_18633 == 2 then
pUnit:RegisterEvent('spell2_18633', 1, 1)
end
if choix_sorts_18633 == 3 then
pUnit:RegisterEvent('spell3_18633', 1, 1)
end
end

function mob18633_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18633', math.random(1500, 3000), 1)
end

function mob18633_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18633_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18633_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18633, 1, 'mob18633_Action')
RegisterUnitEvent(18633, 2, 'mob18633_Leave')
RegisterUnitEvent(18633, 3, 'mob18633_Kill')
RegisterUnitEvent(18633, 4, 'mob18633_Die')
